﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Model.Entities;

namespace Model.Mappings
{
    public partial class HRDS_RUNDATASTATISTICS_Map : ClassMap<HRDS_RUNDATASTATISTICS>
    {
        public HRDS_RUNDATASTATISTICS_Map()
        {
            Table("HRDS_RUNDATASTATISTICS");
            Id(x => x.DATAID)
                .Length(20);

            Map(x => x.RECORDTIME).Nullable();
            Map(x => x.CPUVALUE).Nullable().Precision(4).Scale(2);
            Map(x => x.NETFLOWTOTAL).Nullable().Precision(4).Scale(2);
            Map(x => x.NETFLOWUPLOADING).Nullable().Precision(4).Scale(2);
            Map(x => x.NETFLOWDOWNLOAD).Nullable().Precision(4).Scale(2);
            Map(x => x.RAMVALUE).Nullable().Precision(4).Scale(2);
            Map(x => x.CPUTEMPERTURE).Not.Nullable().Precision(4).Scale(1);
            DoEditableMappings();
        }
    }
}
